import request from '@/common/utils/request'

export function getTestGroupList(data) {
  return request({
    url: 'test-group/list',
    method: 'post',
    data
  })
}

export function getTestGroupItem(data) {
  return request({
    url: 'test-group/item-list',
    method: 'post',
    data
  })
}

export function getTestGroupItems(data) {
  return request({
    url: 'test-group/items-list',
    method: 'post',
    data
  })
}

export function addTestGroup(data) {
  return request({
    url: 'test-group/add',
    method: 'post',
    data
  })
}

export function updateTestGroup(data) {
  return request({
    url: 'test-group/update',
    method: 'post',
    data
  })
}

export function deleteTestGroup(data) {
  return request({
    url: 'test-group/delete',
    method: 'post',
    data
  })
}

// export function getAllTestGroupList() {
//   return request({
//     url: 'test-group/get-all-list',
//     method: 'post'
//   })
// }


export function getAllTestGroupListByParam(data) {
  return request({
    url: 'test-group/get-all-list-by-param',
    method: 'post',
    data
  })
}

export function getTestGroupItemParam(data) {
  return request({
    url: 'test-group/test-group-item',
    method: 'post',
    data
  })
}
